﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@include   file="../header.jsp" %>



<div class="home_divtop01"></div>
 
<div class="home_hy_div" >
	<p class="retext08">您的位置：首页>家园>博文${type}</p>
	<br/>
	<div class="ms_divbodytb">
		<ul class="ms_tabs">
			<a href="/home/bw?type=1" rel="external" onMouseMove="showtab(1,3);" id="b1" class="up" onMouseDown="hometab(1,3);" 
			<c:if test="${type=='1'}">style="background-color:#4A916F;color:#FAFAFA" </c:if>>
			<li>全&nbsp;&nbsp;部</li>
			</a>
			<div class="tab00"> &nbsp;</div>
			<a href="/home/bw?type=2" rel="external" onMouseMove="showtab(2,3);" id="b2"  onMouseDown="hometab(2,3);" <c:if test="${type=='2'}">style="background-color:#4A916F;color:#FAFAFA" </c:if>>
			<li>推&nbsp;&nbsp;荐</li>
			</a>
			<!--<div class="tab00"> &nbsp;</div>
			 <a href="#" rel="external" onMouseMove="showtab(3,3);" id="b3"  onMouseDown="hometab(3,3);" >
			<li>精&nbsp;&nbsp;华</li>
			</a> -->
		</ul>
		<input id="currbwtype" type="hidden" value="${type}"/>
		<!--全部-->
		<div id="tab1" class="ms_tab1" >
			<table width="1000px" align="center" bgcolor="#FFF">
				<div class="ms_tab1_text01">&nbsp;</div>
				<tr style="background-color:#B3DDDF;text-align:center;height:30px;border-bottom:1px solid #DDD;">
					<td width="10px"> </td>
					<td width="400px" style="font-size:14px;">标&nbsp;&nbsp;&nbsp;&nbsp;题 </td>
					<td width="190px" style="font-size:14px;">作&nbsp;&nbsp;&nbsp;&nbsp;者 </td>
					<td width="190px" style="font-size:14px;">发表日期 </td>
				</tr>
				<c:if test="${pageData!=null}">
					<c:forEach  var="bw" items="${pageData.data}">
						<tr style="text-align:center;height:30px;border-bottom:1px solid #DDD;">
							<td width="10px"> </td>
							<td width="400px" style="font-size:14px;text-align:left;"> <a href="#">${bw.title}</a> </td>
							<td width="190px" style="font-size:14px;">${bw.authorId} </td>
							<td width="190px" style="font-size:14px;"><fmt:formatDate value="${bw.blogTime}" pattern="yyyy年MM月dd日HH点mm分ss秒" /> </td>
							
							
						</tr>
					</c:forEach>	
				</c:if>
			</table>
		<!--页面切换-->
			<%@ include file="../paging.jsp"%>
			<!--end页面切换--> 
		</div>
		<!--全部-->
		<!--推荐-->
		<div id="tab2" class="ms_tab1" style="display:none;" >
			
			<!--end页面切换--> 
			
			
		</div>
		<!--end推荐-->
		
		<!--精华-->
		<div id="tab3" class="ms_tab1" style="display:none;">
			
			<!--end页面切换--> 
			
		</div>
		<!--end精华-->
	</div>
</div>


<%@include   file="../footer.jsp" %>
<script type="text/javascript">
onPageClickFunction = function(pageNumber, event) {
	var pdata = {};
	/*****获取不同的选择课程id******/
	var type=$("#currbwtype").val();
	
	pdata.type = type;
	if (pageNumber) {
		pdata.pn = pageNumber;
	}
	AjaxTool("GET", "/home/bw", pdata, "html", function(
			data) {
		// 返回内容
		if (data) {
			$("#contentDiv").html(data);
		}
		;
	});
};
</script>

</body>
</html>